<?php
namespace app\model;

use hg\apidoc\annotation as Apidoc;

class User extends BaseModel
{
    /**
     * @Apidoc\Field('id')
     * @Apidoc\AddField('openId', type='string', default='abc', desc='微信openId')
     * @Apidoc\Param ('id', type='string', desc='id')
     */
    public function getInfo($id)
    {
        $res = $this->get($id);
        return $res;
    }
}